package com.qiaofang.collectmanage.service.common.constant;
/**
 * Copyright (C), 2002-2017, 上海巧房信息技术有限公司
 * FileName: ConstantProperties
 * @Author:   yi.li
 * Date:     2018/7/2 11:05
 */
public final class ConstantProperties {


    public static final String APPLICATION_PROPERTIES = "application.properties";
    /**
     * jdbc
     */
    public static final String JDBC_DRIVER = "jdbc.driver";
    public static final String JDBC_DATASOURCE_SIZE = "jdbc.datasource.size";
    public static final String JDBC_URL = "jdbc.url";
    public static final String JDBC_USER = "jdbc.user";
    public static final String JDBC_PASSWORD = "jdbc.password";

    /**
     * spark程序常量
     */
    /**房源爬虫*/
    public static final String HOUSE_LOCAL = "house.local";
    public static final String HOUSE_PAGE_NUM = "house.pageNum";
    public static final String HOUSE_GET_PROXY_IP_LIST_BY_URL = "house.getProxyIpListByUrl";

    public static final String HOUSE_GET_PROXY_IP_LIST_BY_URL1 =  "http://192.168.20.5:8080/proxyIP/selectAll";
    public static final String  METRICS_TSDBURL1 = "http://192.168.2.24:8242/api/put";

    public static final String HOUSE_POST_PROXY_IPDELETE_BY_ID = "house.postProxyIPDeleteById";
    /**五八号码提取地址*/
    public static final String WUBA_PHONE_EVAL_URL = "wuba.phone.eval.url";
    /**图片识别地址*/
    public static final String PHONE_IMG_URL = "phone.img.url";
    /**房源图片生成地址*/
    public static final String HOUSE_IMG_URL = "house.img.url";

    public static final String HOUSE_WEBSITES = "house.websites";

    public static final String SPARK_DEFAULT_PARALLELISM = "spark.default.parallelism";
    public static final String RESTART_PATH = "restart_path";
    public static final String METRICS_TSDB_URL = "metrics_tsdbUrl";

    /**
     * 下面所有spark程序公共常量
     */
    /**
     * 环境常量
     */
    public static final String APP_ENV = "app.env";
    public static final String ENV_LOCAL = "local";
    public static final String ENV_DEV = "dev";
    public static final String ENV_PROD = "prod";
    public static final String ENV_TEST = "test";
    /**
     * hbase相关常量
     */
    public static final String HBASE_ZOOKEEPER_QUORUM = "hbase.zookeeper.quorum";
    public static final String HBASE_ZOOKEEPER_PROPERTY_CLIENT_PORT = "hbase.zookeeper.property.clientPort";
    /**
     * kafka相关常量
     */
    public static final String KAFKA_METADATA_BROKER_LIST = "kafka.metadata.broker.list";
    /**
     * hadoop相关常量
     */
    public static final String HADOOP_NAMESERVICES = "hadoop.nameservices";
    public static final String HADOOP_USER = "hadoop.user";
    public static final String HADOOP_NN1 = "hadoop.nn1";
    public static final String HADOOP_NN2 = "hadoop.nn2";
    public static final String HADOOP_NN1_RPC = "hadoop.nn1.rpc";
    public static final String HADOOP_NN2_RPC = "hadoop.nn2.rpc";
    /**
     * es相关常量
     */
    public static final String ES_CLUSTER_NAME = "es.clusterName";
    public static final String ES_PING_TIMEOUT = "es.pingTimeout";
    public static final String ES_NODES_SAMPLER_INTERVAL = "es.nodesSamplerInterval";
    public static final String ES_IP = "es.ip";
    public static final String ES_PORT = "es.port";

    /**
     * 代理相关常量
     */
    public static final String HTTP_PROXY_SERVER = "http.proxy.server";
    public static final String HTTPS_PROXY_SERVER = "https.proxy.server";
    public static final String HTTP_PROXY_PORT = "http.proxy.port";
    public static final String HTTP_PROXY_USER = "http.proxy.user";
    public static final String HTTP_PROXY_PASS = "http.proxy.pass";
}
